package com.yazi.mxz.person.jackson.result;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.myframework.smhj.jackson.result.ObjectResult;

/**
 * 前端表单进行远程验证的返回结果(只针对当前前端使用的验证框架)
 * 
 * @author mo_yq5
 * @date 2015-4-7
 */
public class CheckResult<T> extends ObjectResult<T> {
	@JsonSerialize
	private String ok;
	@JsonSerialize
	private String error;

	public String getOk() {
		return ok;
	}

	public void setOk(String ok) {
		this.ok = ok;
		this.error = null;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
		this.ok = null;
	}
}